package cn.ibizlab.odoo.core.odoo_project.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_project.domain.Project_task;
import cn.ibizlab.odoo.core.odoo_project.filter.Project_taskSearchContext;

/**
 * 实体[Project_task] 服务对象接口
 */

public interface IProject_taskService{
     boolean update(Project_task project_task) ;
     Project_task get(Integer id) ;
     Project_task get(Project_task project_task) ;
     void createBatch(List<Project_task> project_tasks, int batchSize) ;
     boolean remove(Integer id) ;
     boolean create(Project_task project_task) ;
     void updateBatch(List<Project_task> project_tasks, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Project_task> searchDefault(Project_taskSearchContext context) ;

    /**
     * 根据项目查询
     */
     Page<Project_task> selectByOdoo_project(Integer id) ;

    /**
     * 根据任务阶段查询
     */
     Page<Project_task> selectByOdoo_stage(Integer id) ;

    /**
     * 根据任务查询
     */
     Page<Project_task> selectByOdoo_parent(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Project_task> selectByOdoo_company(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Project_task> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Project_task> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Project_task> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Project_task> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Project_task convert2Domain(cn.ibizlab.odoo.core.client.model.Iproject_task model ,Project_task domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iproject_task convert2Model(Project_task domain , cn.ibizlab.odoo.core.client.model.Iproject_task model);

}
